package c.e.a.b.f.b;

import android.os.RemoteException;

/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public final class w7 implements Runnable {
    public final /* synthetic */ i7 a;
    public final /* synthetic */ q7 b;

    public w7(q7 q7Var, i7 i7Var) {
        this.b = q7Var;
        this.a = i7Var;
    }

    public final void run() {
        q7 q7Var = this.b;
        i3 i3Var = q7Var.d;
        if (i3Var == null) {
            q7Var.d().f.a("Failed to send current screen to service");
            return;
        }
        try {
            i7 i7Var = this.a;
            if (i7Var == null) {
                i3Var.C0(0, null, null, q7Var.a.a.getPackageName());
            } else {
                i3Var.C0(i7Var.c, i7Var.a, i7Var.b, q7Var.a.a.getPackageName());
            }
            this.b.F();
        } catch (RemoteException e) {
            this.b.d().f.b("Failed to send current screen to the service", e);
        }
    }
}
